﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FireWorksBomb
{
    public class TimeLineBomb
    {
        private Dictionary<TimeSpan, Bomb> timeLine = new Dictionary<TimeSpan,Bomb>();

        public ReadOnlyDictionary<TimeSpan, Bomb> TimeLine
        {
            get
            {
                return new ReadOnlyDictionary<TimeSpan, Bomb>(timeLine);
            }
        }

        public void AddBomb(TimeSpan timeSpan, Bomb bomb)
        {
            timeLine.Add(timeSpan, bomb);
        }

        public void RemoveBomb(TimeSpan timeSpan)
        {
            timeLine.Remove(timeSpan);
        }
    }
}
